home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / patch / patch.zoo / Makefile.tos < prev    next >
Encoding:
Makefile  |  1989-08-10  |  1.7 KB  |  78 lines

  1. # $Header: Makefile.SH,v 2.0.1.2 88/06/22 20:43:40 lwall Locked $
  2. #
  3. # $Log:    Makefile.SH,v $
  4. # Revision 2.0.1.2  88/06/22  20:43:40  lwall
  5. # patch12: config.h now depends on config.h.SH
  6. # Revision 2.0.1.1  88/06/03  15:00:48  lwall
  7. # patch10: upgraded to match some new metaconfig stuff
  8. # Revision 2.0  86/09/17  15:36:15  lwall
  9. # Baseline for netwide release.
  10. # Revision 1.2  86/09/08  14:07:42  lwall
  11. # Split up patch.c.
  12. # Revision 1.1  86/08/01  20:18:35  lwall
  13. # Initial revision
  14.  
  15. CC = cgcc
  16. bin = /usr/local/bin
  17. mansrc = /usr/man/mann
  18. manext = n
  19. CFLAGS =  -O -I. -DTOS
  20. LDFLAGS = -liio
  21. SMALL = 
  22. LARGE =  
  23.  
  24.  
  25. public = patch.ttp
  26. private = 
  27. manpages = patch.man
  28. util = 
  29.  
  30. c = patch.c pch.c inp.c version.c util.c
  31.  
  32. obj = patch.o pch.o inp.o util.o version.o
  33.  
  34. lintflags = -phbvxac
  35.  
  36. addedbyconf = Makefile.old bsd config.h config.sh eunice loc pdp11 usg v7
  37.  
  38. # grrr
  39. SHELL = /bin/sh
  40.  
  41. .c.o:
  42.     $(CC) -c $(CFLAGS) $(LARGE) $*.c
  43.  
  44. all: $(public) $(private) $(util)
  45.     touch all
  46.  
  47. patch.ttp: $(obj)
  48.     $(CC) $(LDFLAGS) $(obj) $(libs) -o patch.ttp
  49.  
  50. config.h: configt.h always
  51.     cp configt.h config.h
  52.  
  53. # force the above always
  54. always:
  55.  
  56. clean:
  57.     rm -f *.o *.orig core
  58.  
  59. realclean:
  60.     rm -f patch *.o *.orig core $(addedbyconf)
  61.  
  62. # The following lint has practically everything turned on.  Unfortunately,
  63. # you have to wade through a lot of mumbo jumbo that can't be suppressed.
  64. # If the source file has a /*NOSTRICT*/ somewhere, ignore the lint message
  65. # for that spot.
  66.  
  67. patch.o: config.h common.h patch.c inp.h pch.h util.h version.h
  68. pch.o: config.h common.h pch.c pch.h util.h
  69. inp.o: config.h common.h inp.c inp.h util.h
  70. util.o: config.h common.h util.c util.h
  71. version.o: config.h common.h version.c version.h patchlevel.h util.h
  72.  
  73.